package rest.home.entity.ms;

import rest.home.entity.Older;
import rest.home.entity.Room;
import rest.home.entity.Visitor;

/**
 * @Author: ZZX
 * @Description:
 * @Date:Created in 10:26 2022/5/7
 * @Modified By:
 */
public class OlderAndVisitorAndRoom {
    private Older older;
    private Visitor visitor;
    private Room room;

    public OlderAndVisitorAndRoom() {
    }

    @Override
    public String toString() {
        return "老人姓名:" + older.getOlderName()+
                ";  访客信息:" + visitor +
                "; 房间状态:" + room.getRoomStatus()+", 房间类型:"+room.getRoomType()+";" ;
    }

    public OlderAndVisitorAndRoom(Older older, Visitor visitor, Room room) {
        this.older = older;
        this.visitor = visitor;
        this.room = room;
    }

    public Older getOlder() {
        return older;
    }

    public void setOlder(Older older) {
        this.older = older;
    }

    public Visitor getVisitor() {
        return visitor;
    }

    public void setVisitor(Visitor visitor) {
        this.visitor = visitor;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }
}
